﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace Tebbee.Business.Server
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "ICategorySer" in both code and config file together.
    [ServiceContract]
    public interface ICategorySer
    {
        [OperationContract]
        Category_Get_Result Category_Get(int catId);
        [OperationContract]
        ICollection<Category_Search_Result> Category_Search(string searchString, int currentPage, out int totalPage);


        [OperationContract]
        int AddNewCategory(Category category);

        [OperationContract]
        ICollection<Category> ListCategories(int startRow, string searchString);

        [OperationContract]
        int EditCategory(Category category);

        [OperationContract]
        int DeleteCategory(int id);

        [OperationContract]
        ICollection<Category> AllCategories();
    }
}
